package 
{
	import flash.display.Bitmap;
	import flash.display.SimpleButton;
	import flash.display.Sprite;
	import flash.events.Event;
	import flash.events.TextEvent;
	import flash.geom.Rectangle;
	import flash.text.TextField;
	
	/**
	 * ...
	 * @author AlexeevAlexander
	 */
	public class Main extends Sprite 
	{
		
		public function Main():void 
		{
			if (stage) init();
			else addEventListener(Event.ADDED_TO_STAGE, init);
		}
		
		private function init(e:Event = null):void 
		{
			removeEventListener(Event.ADDED_TO_STAGE, init);
			// entry point
		    var txtHello:TextField = new  TextField();
            txtHello.width = 100;
			txtHello.height = 20;
			txtHello.text = "SayHelloRastaman";
			addChild(txtHello);
			var pressbutton:SimpleButton = new SimpleButton();
			pressbutton.width = 140;
			pressbutton.height = 40;
		
		
			pressbutton.visible = true;
		    addChild(pressbutton);
		
			
		}
	
	}
	
}